package com.tangding.hprose.api.server.command.impl.testForData;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @description 
 *
 * @author Ranger
 * @version 2017年12月8日_下午6:04:42
 *
 */
public class TestQueryGameSettings implements TestCommand{

	@Override
	public Object products() {
		Map<String, Object> data = new HashMap<>();
		
		List<Object> list = new ArrayList<>();
		Map<String, Object> head = new HashMap<>();
		head.put("name","红狮子");
		head.put("id", 1);
		list.add(head);
		head = new HashMap<>();
		head.put("name","黄狮子");
		head.put("id", 2);
		list.add(head);
		head = new HashMap<>();
		head.put("name","绿狮子");
		head.put("id", 3);
		list.add(head);
		head = new HashMap<>();
		head.put("name","红熊猫");
		head.put("id", 4);
		list.add(head);
		head = new HashMap<>();
		head.put("name","黄熊猫");
		head.put("id", 5);
		list.add(head);
		head = new HashMap<>();
		head.put("name","绿熊猫");
		head.put("id", 6);
		list.add(head);
		head = new HashMap<>();
		head.put("name","红猴子");
		head.put("id", 7);
		list.add(head);
		head = new HashMap<>();
		head.put("name","黄猴子");
		head.put("id", 8);
		list.add(head);
		head = new HashMap<>();
		head.put("name","绿猴子");
		head.put("id", 9);
		list.add(head);
		head = new HashMap<>();
		head.put("name","红兔子");
		head.put("id", 10);
		list.add(head);
		head = new HashMap<>();
		head.put("name","黄兔子");
		head.put("id", 11);
		list.add(head);
		head = new HashMap<>();
		head.put("name","绿兔子");
		head.put("id", 12);
		list.add(head);
//		data.put("head", new String[]{ "红狮子", "黄狮子", "绿狮子", "红熊猫", "黄熊猫", "绿熊猫", "红猴子", "黄猴子", "绿猴子", "红兔子", "黄兔子", "绿兔子" });
		data.put("head", list);
		
		List<Object> zhxList = new ArrayList<>();
		Map<String, Object> zhx = new HashMap<>();
		zhx.put("name","庄");
		zhx.put("id", 1);
		zhxList.add(zhx);
		zhx = new HashMap<>();
		zhx.put("name","和");
		zhx.put("id", 2);
		zhxList.add(zhx);
		zhx = new HashMap<>();
		zhx.put("name","闲");
		zhx.put("id", 3);
		zhxList.add(zhx);
		data.put("zhx", zhxList);
		
		List<Map<String, Object>> bigRewards = new ArrayList<>();
		Map<String, Object> bigReward = new HashMap<>();
		bigReward.put("id", 10004);
		bigReward.put("name", "大三元");
		bigRewards.add(bigReward);
		
		bigReward = new HashMap<>();
		bigReward.put("id", 10005);
		bigReward.put("name", "大四喜");
		bigRewards.add(bigReward);
		
		data.put("bigRewards", bigRewards);
		return data;
	}

}
